package com.hy.erp.inventory.service;

import javax.ejb.Stateless;
import javax.ejb.TransactionAttribute;
import javax.ejb.TransactionAttributeType;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

import org.jboss.seam.annotations.Name;
import org.jboss.seam.annotations.Transactional;
import org.jboss.seam.annotations.bpm.EndTask;
import org.jboss.seam.annotations.bpm.StartTask;

import com.hy.erp.inventory.pojo.User;
import com.hy.erp.inventory.service.interfaces.IStockNoticesService;





@Name ( "StockNoticesService" )
@Stateless
@Transactional
public class StockNoticesService  implements IStockNoticesService
      
{
	
	 @PersistenceContext
	 EntityManager entityManager;
	//@In (create=true)                                                                               
   //private User user; 

	private static final long	serialVersionUID	=
	                                                  6758304186739657677L ;
        
	/**
	 * 构造函数
	 */
	public StockNoticesService ( )
	{
		super ( ) ;
	}

	
	//@TransactionAttribute(TransactionAttributeType.REQUIRED)
		public void addCaigouliuchengs (User user
		                         )
		{
			
			entityManager.persist(user);
			
		}


	
		

	


	  

	}
